import * as req from '@/request';

export async function list(
  params: { [key: string]: any },
  sorter?: { [key: string]: any },
  filter?: { [key: string]: any },
) {
  return req.postForm<API.BroadcastIpList>('/broadcastIp/list',params,sorter,filter,);
}

export async function add(data: { [key: string]: any }) {
  return req.postJson<API.Result>('/broadcastIp/create', data);
}

export async function update(data: { [key: string]: any }) {
  return req.postJson<API.Result>('/broadcastIp/update', data);
}

export async function remove(data: { key: string }) {
  return req.post<API.Result>('/broadcastIp/delete', data);
}

export async function logs(
  params: { [key: string]: any },
  sorter?: { [key: string]: any },
  filter?: { [key: string]: any },
) {
  return req.postForm<API.BroadcastIpLogList>('/broadcastIp/logs',params,sorter,filter,);
}

export async function changeIps(data: { [key: string]: any }) {
  return req.postJson<API.Result>('/broadcastIp/changeIps', data);
}


